﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AssetAllocationSystem.Models.Interface;
using FluentNHibernate.Mapping;

namespace AssetAllocationSystem.Models.Mapping
{
    public class AllocationMapping : ClassMap<Allocation>
    {
        public AllocationMapping()
        {
            Table("Allocation");
            Id(a => a.Id);
            Map(a => a.AllocationType);
            Map(a => a.ExpectedReleaseDate);
            Map(a => a.ActualReleaseDate);
            References(a => a.Assignee);
            References(a => a.Asset).Column("Asset_Id");
        }
    }
}